package com.ruoyi.StudectTeacher.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.StudectTeacher.mapper.StudectteacherMapper;
import com.ruoyi.StudectTeacher.domain.Studectteacher;
import com.ruoyi.StudectTeacher.service.IStudectteacherService;

/**
 * 方向导师Service业务层处理
 * 
 * @author yjh
 * @date 2024-08-22
 */
@Service
public class StudectteacherServiceImpl implements IStudectteacherService 
{
    @Autowired
    private StudectteacherMapper studectteacherMapper;

    /**
     * 查询方向导师
     * 
     * @param id 方向导师主键
     * @return 方向导师
     */
    @Override
    public Studectteacher selectStudectteacherById(Long id)
    {
        return studectteacherMapper.selectStudectteacherById(id);
    }

    /**
     * 查询方向导师列表
     * 
     * @param studectteacher 方向导师
     * @return 方向导师
     */
    @Override
    public List<Studectteacher> selectStudectteacherList(Studectteacher studectteacher)
    {
        return studectteacherMapper.selectStudectteacherList(studectteacher);
    }

    /**
     * 新增方向导师
     * 
     * @param studectteacher 方向导师
     * @return 结果
     */
    @Override
    public int insertStudectteacher(Studectteacher studectteacher)
    {
        return studectteacherMapper.insertStudectteacher(studectteacher);
    }

    /**
     * 修改方向导师
     * 
     * @param studectteacher 方向导师
     * @return 结果
     */
    @Override
    public int updateStudectteacher(Studectteacher studectteacher)
    {
        return studectteacherMapper.updateStudectteacher(studectteacher);
    }

    /**
     * 批量删除方向导师
     * 
     * @param ids 需要删除的方向导师主键
     * @return 结果
     */
    @Override
    public int deleteStudectteacherByIds(Long[] ids)
    {
        return studectteacherMapper.deleteStudectteacherByIds(ids);
    }

    /**
     * 删除方向导师信息
     * 
     * @param id 方向导师主键
     * @return 结果
     */
    @Override
    public int deleteStudectteacherById(Long id)
    {
        return studectteacherMapper.deleteStudectteacherById(id);
    }
}
